package com.teen9g.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ChatMessageSideVO implements Serializable {
    private Integer messageId;
    private String chatId;
    private Integer senderId;
    private String senderName;
    private Integer receiverId;
    private String receiverName;
    private String receiverAvatarUrl;
    private String messageContent;
    private Integer chatWithId;
    private String chatWith;
    private String chatWithAvatarUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;
}
